package com.lagou.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * @ClassName MailProperties
 * @Description
 * @Author playboy
 * @Date 2021/6/25 4:23 下午
 * @Version 1.0
 **/
@Validated
@Component
@ConfigurationProperties(prefix = "mail")
@Data
@RefreshScope
public class MailProperties {

	private String domain;
	private String from;
}
